<html>
    <head>
        <script type="text/javascript" src="js/sweetalert.min.js"></script>
        <script>
            function openModal(){
                  window.open("modal.html","_self","width=500,height=300");
            }
        </script>
    </head>
    <body>
        <a href="modal.html" onclick="openModal()">点击打开模态窗口</button>
    </body>
</html>
